#include <stdio.h>

int main() {
    int count[10]; 
    for (int i = 0; i < 10; i++) {
        scanf("%d", &count[i]);
    }
    for (int i = 1; i < 10; i++) {
        if (count[i] > 0) {
            printf("%d", i); 
            count[i]--;    
            break;
        }
    }

    while (count[0] > 0) {
        printf("0");
        count[0]--;
    }

    for (int i = 0; i < 10; i++) {
        while (count[i] > 0) {
            printf("%d", i);
            count[i]--;
        }
    }

    printf("\n");
    return 0;
}
